package com.hejielife.future1;

/**
 * 2019年8月2日 下午4:25:02
 * 
 * @author hejielife
 * @despribe Host
 */
public class Host {
	public Data request(final int count, final char c) {
		System.out.println("    request(" + count + ", " + c + ") BEGIN");
		final FutureData future = new FutureData();
		new Thread() {
			public void run() {
				RealData realdata = new RealData(count, c);
				future.setRealData(realdata);
			}
		}.start();
		System.out.println("    request(" + count + ", " + c + ") END");
		return future;
	}
}
